package com.cskaoyan.controller.stage;

import com.cskaoyan.model.Issue;
import com.cskaoyan.model.bo.BaseParamBO;
import com.cskaoyan.model.vo.BaseRespVO;
import com.cskaoyan.model.vo.DataVO;
import com.cskaoyan.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: WxIssueController
 * @Description: TODO 微信端常用问题帮助页面模块
 * @Author:
 * @Date: 2022/5/10 10:06
 * @Version: 1.0
 **/
@RestController
@RequestMapping("wx/issue")
public class WxIssueController {
    @Autowired
    IssueService issueService;

    /**
     * @author: zk
     * @description: TODO  微信帮助中心展示通用问题列表
     * @date: 2022/5/10 10:08
     */
    @GetMapping("list")
    public BaseRespVO issueList(BaseParamBO paramBO){
        DataVO<Issue> data = issueService.queryAllIssues(paramBO);
        return BaseRespVO.ok(data);
    }
}
